import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import VueSocketio from 'vue-socket.io';
// import { setStorage, getStorage } from '@/utils/tools';
import { Storage } from '@/utils/tools';
import './registerServiceWorker';

import './styles/reset.css';
import './quasar';
import './permission';

Vue.use(
  new VueSocketio({
    debug: true,
    connection: 'http://localhost:3000',
  })
);

Vue.config.productionTip = false;
Vue.prototype.$storage = new Storage();
// Vue.prototype.$setStorage = setStorage;
// Vue.prototype.$getStorage = getStorage;

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
